package XueXiao;

public class ShiYan3 {
    public static void main(String[] args) {
        double n = 5000;
        double target = 10000;
        int year = 0;
        while (n < target) {
            n *= 1.05;
            year++;
        }
        System.out.println("year="+ year );
    }
    }

